using System;
using Azure.Domain.Models;

namespace Azure.Web.Models
{
    public class EditPostViewModel
    {
        public EditPostViewModel()
        {
            
        }

        public EditPostViewModel(Post post)
        {
            PartitionKey = post.PartitionKey;
            RowKey = post.RowKey;
            Title = post.Title;
            Body = post.Body;
            Author = post.Author;
            Slug = post.Slug;
        }

        public string PartitionKey { get; set; }
        public string RowKey { get; set; }

        public string Title { get; set; }
        public string Body { get; set; }
        public string Author { get; set; }
        public string Slug { get; set; }
    }
}